import Vue from "vue";
import VueRouter from 'vue-router';
import User from "@/views/User";
import NotFound from "@/views/NotFound";
import Home from "@/views/Home";


Vue.use(VueRouter)

const routes = [
    {
        path:"/",
        component:Home
    },
    {
        path: "/user",
        component:User
    },
    {
        path: "*",
        component: NotFound
    }
]
const router = new VueRouter({
    routes:routes
})

export default router;